package com.epam.giorgadze.task3.entity;

import javax.xml.bind.annotation.*;

/**
 * User: Luka
 * Date: 11.02.14
 * Time: 20:01
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PlaneModel", propOrder = {
        "manufacturer",
        "engineCapacity",
        "wingspan",
        "planeLength",
        "courseSpeed",
        "flightLevel"
})
public class PlaneModel {
    private double engineCapacity;
    private double wingspan;
    private double planeLength;
    private double courseSpeed;
    private double flightLevel;
    @XmlElement(required = true)
    private Manufacturer manufacturer;
    @XmlAttribute(name = "planeModelName", required = true)
    private String name;

    public PlaneModel() {
    }

    public Manufacturer getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(Manufacturer manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public PlaneModel(double engineCapacity, double wingspan, double planeLength, double courseSpeed, double flightLevel, Manufacturer manufacturer, String name) {
        this.engineCapacity = engineCapacity;

        this.wingspan = wingspan;
        this.planeLength = planeLength;
        this.courseSpeed = courseSpeed;
        this.flightLevel = flightLevel;
        this.manufacturer = manufacturer;
        this.name = name;
    }

    public double getEngineCapacity() {
        return engineCapacity;
    }

    public void setEngineCapacity(double engineCapacity) {
        this.engineCapacity = engineCapacity;
    }

    public double getWingspan() {
        return wingspan;
    }

    public void setWingspan(double wingspan) {
        this.wingspan = wingspan;
    }

    public double getPlaneLength() {
        return planeLength;
    }

    public void setPlaneLength(double planeLength) {
        this.planeLength = planeLength;
    }

    public double getCourseSpeed() {
        return courseSpeed;
    }

    public void setCourseSpeed(double courseSpeed) {
        this.courseSpeed = courseSpeed;
    }

    public double getFlightLevel() {
        return flightLevel;
    }

    public void setFlightLevel(double flightLevel) {
        this.flightLevel = flightLevel;
    }
}
